package day05;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/14
 */
public class CopyToString {
    public static void main(String[] args) {
        int[] arr = {2,3,6,8,5,7,};
        String result = "[";

        for (int i = 0; i < arr.length; i++) {
            result += arr[i];
            if (i < arr.length - 1) {
                result += ", ";
            }
        }

        result += "]";
        System.out.println(result);
    }
}
